﻿#region Imports
using CommonUtilities.Extensions;
#endregion

namespace CommonUtilities.Models
{
    public class IdValueMember<TId, TValue> : IdMember<TId>
    {
        #region Properties
        public TValue Value { get; protected set; }
        #endregion

        #region Constructors
        protected IdValueMember()
            : base()
        {

        }

        public IdValueMember(TId id)
            : base(id)
        {
            this.Value = id.ChangeType<TValue>();
        }

        public IdValueMember(TId id, TValue value)
            : base(id)
        {
            this.Value = value;
        }
        #endregion
    }
}
